package com.xujf.sym.model.util;

import com.google.gson.Gson;

import java.util.Map;

import okhttp3.RequestBody;

/**
 * Created by xujf on 2018/4/15.
 */

public class OkHttpUtils {

    public static RequestBody getRequestBody(Map<String, String> bodyMap) {
        String json = new Gson().toJson(bodyMap);
        return RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"),json);
    }
}
